Skip to main content

mobileAdGetTopLeft

Type

function

Summary

Returns the topLeft position of an ad.

Syntax

mobileAdGetTopLeft (<adName>)

Description

Use the mobileAdGetTopLeft function to retrieve the top left postition of an ad.

The mobileGetTopLeft function returns the topLeft position of an ad.

Parameters

NameTypeDescription

adName

The name of ad (as specified in mobileAdCreate).

Examples

put mobileAdGetTopLeft("my ad") into tTopLeft

Value

NameTypeDescription

return

Returns the topLeft position of an ad. This is 2 comma separated values giving the left and top coordinates of the ad relative to the topLeft corner of the stack, which is 0,0. Returns "ad not found" if the ad does not exist.

the result

Before calling this function you must have registered your app's id using mobileAdRegister. If not, the result will contain "not registered with service".

property: topLeft

command: mobileAdCreate, mobileAdDelete, mobileAdSetVisible, mobileAdSetTopLeft, mobileAdRegister

function: mobileAdGetVisible

message: adLoaded, adLoadFailed, adClicked

Compatibility and Support

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?